#include <stdlib.h>
#include <algorithm>
#include <cmath>


class Function
{
 public:
  virtual double operator()(double _x)=0 ;
  virtual double diff(double _x)=0 ;
};

